package com.zx.oa.service.marketStudent;

import com.zx.oa.dao.marketStudent.MarketStudentDao;
import com.zx.oa.dao.marketStudent.MarketStudentDaoImpl;
import com.zx.oa.entity.MarketStudent;
import com.zx.oa.entity.ShowMarketStudent;

import java.util.List;

public class MarketStudentServiceImpl implements MarketStudentService{
    MarketStudentDao marketStudentDao=new MarketStudentDaoImpl();

    @Override
    public List<ShowMarketStudent> getStudentAll(String name, String className, String stuType, String intention, int currentPageNo, int pageSize) {
        return marketStudentDao.getStudentAll(name,className,stuType,intention,currentPageNo,pageSize);
    }

    @Override
    public int getStudentTotalCount(String name, String className, String stuType, String intention) {
        return marketStudentDao.getStudentTotalCount(name,className,stuType,intention);
    }

    @Override
    public List<String> getIntentionAll() {
        return marketStudentDao.getIntentionAll();
    }

    @Override
    public List<ShowMarketStudent> getStudentAll(String name, String className, String stuType, String intention) {
        return marketStudentDao.getStudentAll(name,className,stuType,intention);
    }

    @Override
    public List<String> getCharacter() {
        return marketStudentDao.getCharacter();
    }

    @Override
    public boolean addMarketStudent(Integer id, String name, String className, String fromSchool, String education, Integer phone, Integer qq, String character, String remarks, String intention, String createTime, String createName) {
        return marketStudentDao.addMarketStudent(id,name,className,fromSchool,education,phone,qq,character,remarks,intention,createTime,createName);
    }

    @Override
    public boolean delMarketStudentById(Integer id) {
        return marketStudentDao.delMarketStudentById(id);
    }

    @Override
    public MarketStudent getStudentById(Integer id) {
        return marketStudentDao.getStudentById(id);
    }

    @Override
    public boolean modifyMarketStudent(MarketStudent marketStudent, String createName) {
        return marketStudentDao.modifyMarketStudent(marketStudent,createName);
    }
}
